<?php /* Smarty version Smarty-3.1.18, created on 2015-08-19 15:23:06
         compiled from "D:\WWW\yf_qiaqia\Home\View\default\Index\index.html" */ ?>
<?php /*%%SmartyHeaderCode:736355d424f41882c5-56876796%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ef7ce7247048b42a9a69d7e2f44b4ea3c96f2725' => 
    array (
      0 => 'D:\\WWW\\yf_qiaqia\\Home\\View\\default\\Index\\index.html',
      1 => 1439968983,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '736355d424f41882c5-56876796',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_55d424f4526020_66470338',
  'variables' => 
  array (
    '_C' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55d424f4526020_66470338')) {function content_55d424f4526020_66470338($_smarty_tpl) {?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>jQuery File Upload Example</title>
</head>
<body>
<div class="yf_img">
<input class="fileupload" type="file" name="files[]" data-url="index.php?g=home&m=index&a=act_upload" multiple>
<img src="" style="display:none;">
</div>
<div class="yf_img">
<input class="fileupload" type="file" name="files[]" data-url="index.php?g=home&m=index&a=act_upload" multiple>
<img src="" style="display:none;">
</div>
<div class="yf_img">
<input class="fileupload" type="file" name="files[]" data-url="index.php?g=home&m=index&a=act_upload" multiple>
<img src="" style="display:none;">
</div>
<a class="yf-add">add</a>
<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/jquery-1.11.2.min.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/jquery.ui.widget.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/jquery.iframe-transport.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/jquery.fileupload.js"></script>
<script>
$(function () {
	function yf_start()
	{
	   $('.fileupload').fileupload({
	    	dataType: 'json',
	        add: function (e, data) {
	            data.context = $('<p/>').text('Uploading...').appendTo(document.body);
	            data.submit();
	        },
	        done: function (e, data) {
	           $(this).parent().find('img').attr('src', data.result.url).css('display', 'block');
	           data.context.html = "";
	           console.log(data);
	        }
	    });
	}
    $('.yf-add').click(function(){
    	var html = '<div class="yf_img"><input class="fileupload" type="file" name="files[]" data-url="index.php?g=home&m=index&a=act_upload" multiple><img src="" style="display:none;"></div>';
    	$(html).appendTo('body');
    	yf_start()
    });
    yf_start();
});
</script>
</body> 
</html><?php }} ?>
